package org.van.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.van.blog.dto.cond.CommentCond;
import org.van.blog.model.CommentDomain;

@Mapper
public interface CommentDao {
    void addComment(CommentDomain comments);

    List<CommentDomain> getCommentByCId(@Param("cid") Integer cid);

    void deleteComment(@Param("coid") Integer coid);

    Long getCommentCount();

    List<CommentDomain> getCommentsByCond(CommentCond commentCond);

    CommentDomain getCommentById(@Param("coid") Integer coid);

    void updateCommentStatus(@Param("coid") Integer coid, @Param("status") String status);
}
